package com.baseweb.webadmin.weixin.jssdk;
import java.util.TimerTask;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.baseweb.webadmin.weixin.utils.Constant;
public class Task  extends TimerTask {      
	private   static  Logger logeer = LoggerFactory.getLogger(Task.class);
	@Override
	public  void run() {
		try {
			//访问微信 获取 jsapi_ticket
			logeer.info("90分钟执行一次 获取 jsapi_ticket");
			JsapiTicketCache.jsapiTickemMap.put(Constant.JSAPI_TICKET, new  JsapiTicket().getJsapiTicket());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
